#Target
TgtFile = Config

#Files to Build
SrcFile1 = CTL
SrcFile2 = CTLStruc
SrcFile3 = LCT
SrcFile4 = LCTStruc
SrcFile5 = MST
SrcFile6 = MSTStruc
SrcFile7 = CCT
SrcFile8 = CCTStruc
SrcFile9 = HDT
SrcFile10 = HDTStruc
SrcFile11 = SIG
SrcFile12 = SIGStruc
SrcFile13 = PCT
SrcFile14 = PCTStruc
SrcFile15 = AAT
SrcFile16 = AATStruc
SrcFile17 = PIT
SrcFile18 = PITStruc
SrcFile19 = MHT
SrcFile20 = MHTStruc
SrcFile21 = MNU
SrcFile22 = MNUStruc
SrcFile23 = CDT
SrcFile24 = CDTStruc
SrcFile25 = PCL
SrcFile26 = PCLStruc
SrcFile27 = IIT
SrcFile28 = IITStruc
SrcFile29 = TCT
SrcFile30 = TCTStruc
SrcFile31 = CPT
SrcFile32 = CPTStruc
SrcFile33 = CST
SrcFile34 = CSTStruc
SrcFile35 = TCP
SrcFile36 = TCPStruc
SrcFile37 = MCT
SrcFile38 = MCTStruc
SrcFile39 = DCT
SrcFile40 = DCTStruc
SrcFile41 = MIT
SrcFile42 = MITStruc
SrcFile43 = GPT
SrcFile44 = GPTStruc
SrcFile45 = BDT
SrcFile46 = BDTStruc
SrcFile47 = ETT
SrcFile48 = ETTStruc
SrcFile49 = MGT
SrcFile50 = MGTStruc
SrcFile51 = ConfInit

# SDS Tools Related Paths
sdsTools = $(SDS)\cmd
ResRoot  = $(PrjRoot)\SPK2SDS

# App Source Paths 
SrcDir = \SOFTPAY\ver30\projects\CITI\config\SDS

#  Compiler/Linker/Outhdr Output Paths
OutDir = $(ResRoot)\out

# Include Paths
SDSIncludes        = \verixaps\vfsdk\ver170\include
ACTIncludes        = \verixaps\act2000\\include
ObjDir = \SOFTPAY\Ver30\Projects\CITI\obj\SDS
LibDir = \SOFTPAY\Ver30\Projects\CITI\lib\SDS
SrcDir = \SOFTPAY\ver30\projects\CITI\config\SDS
sdsTools = $(SDS)\cmd
SP2Includes        = \SOFTPAY\Ver30\source\include

# Library Paths
SDKLibraries = (VFSDK)\lib
AppObjects = \
$(ObjDir)\$(SrcFile1).o \
$(ObjDir)\$(SrcFile2).o \
$(ObjDir)\$(SrcFile3).o \
$(ObjDir)\$(SrcFile4).o \
$(ObjDir)\$(SrcFile5).o \
$(ObjDir)\$(SrcFile6).o \
$(ObjDir)\$(SrcFile7).o \
$(ObjDir)\$(SrcFile8).o \
$(ObjDir)\$(SrcFile9).o \
$(ObjDir)\$(SrcFile10).o \
$(ObjDir)\$(SrcFile11).o \
$(ObjDir)\$(SrcFile12).o \
$(ObjDir)\$(SrcFile13).o \
$(ObjDir)\$(SrcFile14).o \
$(ObjDir)\$(SrcFile15).o \
$(ObjDir)\$(SrcFile16).o \
$(ObjDir)\$(SrcFile17).o \
$(ObjDir)\$(SrcFile18).o \
$(ObjDir)\$(SrcFile19).o \
$(ObjDir)\$(SrcFile20).o \
$(ObjDir)\$(SrcFile21).o \
$(ObjDir)\$(SrcFile22).o \
$(ObjDir)\$(SrcFile23).o \
$(ObjDir)\$(SrcFile24).o \
$(ObjDir)\$(SrcFile25).o \
$(ObjDir)\$(SrcFile26).o \
$(ObjDir)\$(SrcFile27).o \
$(ObjDir)\$(SrcFile28).o \
$(ObjDir)\$(SrcFile29).o \
$(ObjDir)\$(SrcFile30).o \
$(ObjDir)\$(SrcFile31).o \
$(ObjDir)\$(SrcFile32).o \
$(ObjDir)\$(SrcFile33).o \
$(ObjDir)\$(SrcFile34).o \
$(ObjDir)\$(SrcFile35).o \
$(ObjDir)\$(SrcFile36).o \
$(ObjDir)\$(SrcFile37).o \
$(ObjDir)\$(SrcFile38).o \
$(ObjDir)\$(SrcFile39).o \
$(ObjDir)\$(SrcFile40).o \
$(ObjDir)\$(SrcFile41).o \
$(ObjDir)\$(SrcFile42).o \
$(ObjDir)\$(SrcFile43).o \
$(ObjDir)\$(SrcFile44).o \
$(ObjDir)\$(SrcFile45).o \
$(ObjDir)\$(SrcFile46).o \
$(ObjDir)\$(SrcFile47).o \
$(ObjDir)\$(SrcFile48).o \
$(ObjDir)\$(SrcFile49).o \
$(ObjDir)\$(SrcFile50).o \
$(ObjDir)\$(SrcFile51).o

FoundationLibs =					\
$(VFSDK)\lib\libicc.a				\
$(VFSDK)\lib\libsys.a				\
$(VFDEV)\sdsfiles\libc.a

# PreProcessing (precompile only)
PreProcess = C:\MSDEV\BIN\CL /EP /P /D"__RCK2" /D"K2V6"

# Compiler Options
Includes = -I $(SDSIncludes) -I $(ACTIncludes) -I $(SP2Includes)
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LibDir)\$(TgtFile).a : $(AppObjects)
	@$(sdsTools)\liber -cy $(LibDir)\$(TgtFile).a $(AppObjects)

	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
$(ObjDir)\$(SrcFile1).o : $(SrcDir)\$(SrcFile1).c 
	@echo COMPILING...$(SrcFile1).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile1).c | fmterr.exe



$(ObjDir)\$(SrcFile2).o : $(SrcDir)\$(SrcFile2).c 
	@echo COMPILING...$(SrcFile2).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile2).c | fmterr.exe



$(ObjDir)\$(SrcFile3).o : $(SrcDir)\$(SrcFile3).c 
	@echo COMPILING...$(SrcFile3).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile3).c | fmterr.exe



$(ObjDir)\$(SrcFile4).o : $(SrcDir)\$(SrcFile4).c 
	@echo COMPILING...$(SrcFile4).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile4).c | fmterr.exe



$(ObjDir)\$(SrcFile5).o : $(SrcDir)\$(SrcFile5).c 
	@echo COMPILING...$(SrcFile5).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile5).c | fmterr.exe



$(ObjDir)\$(SrcFile6).o : $(SrcDir)\$(SrcFile6).c 
	@echo COMPILING...$(SrcFile6).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile6).c | fmterr.exe



$(ObjDir)\$(SrcFile7).o : $(SrcDir)\$(SrcFile7).c 
	@echo COMPILING...$(SrcFile7).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile7).c | fmterr.exe



$(ObjDir)\$(SrcFile8).o : $(SrcDir)\$(SrcFile8).c 
	@echo COMPILING...$(SrcFile8).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile8).c | fmterr.exe



$(ObjDir)\$(SrcFile9).o : $(SrcDir)\$(SrcFile9).c 
	@echo COMPILING...$(SrcFile9).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile9).c | fmterr.exe



$(ObjDir)\$(SrcFile10).o : $(SrcDir)\$(SrcFile10).c 
	@echo COMPILING...$(SrcFile10).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile10).c | fmterr.exe



$(ObjDir)\$(SrcFile11).o : $(SrcDir)\$(SrcFile11).c 
	@echo COMPILING...$(SrcFile11).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile11).c | fmterr.exe



$(ObjDir)\$(SrcFile12).o : $(SrcDir)\$(SrcFile12).c 
	@echo COMPILING...$(SrcFile12).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile12).c | fmterr.exe



$(ObjDir)\$(SrcFile13).o : $(SrcDir)\$(SrcFile13).c 
	@echo COMPILING...$(SrcFile13).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile13).c | fmterr.exe



$(ObjDir)\$(SrcFile14).o : $(SrcDir)\$(SrcFile14).c 
	@echo COMPILING...$(SrcFile14).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile14).c | fmterr.exe



$(ObjDir)\$(SrcFile15).o : $(SrcDir)\$(SrcFile15).c 
	@echo COMPILING...$(SrcFile15).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile15).c | fmterr.exe



$(ObjDir)\$(SrcFile16).o : $(SrcDir)\$(SrcFile16).c 
	@echo COMPILING...$(SrcFile16).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile16).c | fmterr.exe



$(ObjDir)\$(SrcFile17).o : $(SrcDir)\$(SrcFile17).c 
	@echo COMPILING...$(SrcFile17).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile17).c | fmterr.exe



$(ObjDir)\$(SrcFile18).o : $(SrcDir)\$(SrcFile18).c 
	@echo COMPILING...$(SrcFile18).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile18).c | fmterr.exe



$(ObjDir)\$(SrcFile19).o : $(SrcDir)\$(SrcFile19).c 
	@echo COMPILING...$(SrcFile19).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile19).c | fmterr.exe



$(ObjDir)\$(SrcFile20).o : $(SrcDir)\$(SrcFile20).c 
	@echo COMPILING...$(SrcFile20).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile20).c | fmterr.exe



$(ObjDir)\$(SrcFile21).o : $(SrcDir)\$(SrcFile21).c 
	@echo COMPILING...$(SrcFile21).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile21).c | fmterr.exe



$(ObjDir)\$(SrcFile22).o : $(SrcDir)\$(SrcFile22).c 
	@echo COMPILING...$(SrcFile22).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile22).c | fmterr.exe



$(ObjDir)\$(SrcFile23).o : $(SrcDir)\$(SrcFile23).c 
	@echo COMPILING...$(SrcFile23).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile23).c | fmterr.exe



$(ObjDir)\$(SrcFile24).o : $(SrcDir)\$(SrcFile24).c 
	@echo COMPILING...$(SrcFile24).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile24).c | fmterr.exe



$(ObjDir)\$(SrcFile25).o : $(SrcDir)\$(SrcFile25).c 
	@echo COMPILING...$(SrcFile25).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile25).c | fmterr.exe



$(ObjDir)\$(SrcFile26).o : $(SrcDir)\$(SrcFile26).c 
	@echo COMPILING...$(SrcFile26).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile26).c | fmterr.exe



$(ObjDir)\$(SrcFile27).o : $(SrcDir)\$(SrcFile27).c 
	@echo COMPILING...$(SrcFile27).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile27).c | fmterr.exe



$(ObjDir)\$(SrcFile28).o : $(SrcDir)\$(SrcFile28).c 
	@echo COMPILING...$(SrcFile28).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile28).c | fmterr.exe



$(ObjDir)\$(SrcFile29).o : $(SrcDir)\$(SrcFile29).c 
	@echo COMPILING...$(SrcFile29).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile29).c | fmterr.exe



$(ObjDir)\$(SrcFile30).o : $(SrcDir)\$(SrcFile30).c 
	@echo COMPILING...$(SrcFile30).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile30).c | fmterr.exe



$(ObjDir)\$(SrcFile31).o : $(SrcDir)\$(SrcFile31).c 
	@echo COMPILING...$(SrcFile31).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile31).c | fmterr.exe



$(ObjDir)\$(SrcFile32).o : $(SrcDir)\$(SrcFile32).c 
	@echo COMPILING...$(SrcFile32).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile32).c | fmterr.exe



$(ObjDir)\$(SrcFile33).o : $(SrcDir)\$(SrcFile33).c 
	@echo COMPILING...$(SrcFile33).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile33).c | fmterr.exe



$(ObjDir)\$(SrcFile34).o : $(SrcDir)\$(SrcFile34).c 
	@echo COMPILING...$(SrcFile34).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile34).c | fmterr.exe



$(ObjDir)\$(SrcFile35).o : $(SrcDir)\$(SrcFile35).c 
	@echo COMPILING...$(SrcFile35).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile35).c | fmterr.exe



$(ObjDir)\$(SrcFile36).o : $(SrcDir)\$(SrcFile36).c 
	@echo COMPILING...$(SrcFile36).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile36).c | fmterr.exe



$(ObjDir)\$(SrcFile37).o : $(SrcDir)\$(SrcFile37).c 
	@echo COMPILING...$(SrcFile37).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile37).c | fmterr.exe



$(ObjDir)\$(SrcFile38).o : $(SrcDir)\$(SrcFile38).c 
	@echo COMPILING...$(SrcFile38).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile38).c | fmterr.exe



$(ObjDir)\$(SrcFile39).o : $(SrcDir)\$(SrcFile39).c 
	@echo COMPILING...$(SrcFile39).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile39).c | fmterr.exe



$(ObjDir)\$(SrcFile40).o : $(SrcDir)\$(SrcFile40).c 
	@echo COMPILING...$(SrcFile40).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile40).c | fmterr.exe



$(ObjDir)\$(SrcFile41).o : $(SrcDir)\$(SrcFile41).c 
	@echo COMPILING...$(SrcFile41).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile41).c | fmterr.exe



$(ObjDir)\$(SrcFile42).o : $(SrcDir)\$(SrcFile42).c 
	@echo COMPILING...$(SrcFile42).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile42).c | fmterr.exe



$(ObjDir)\$(SrcFile43).o : $(SrcDir)\$(SrcFile43).c 
	@echo COMPILING...$(SrcFile43).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile43).c | fmterr.exe



$(ObjDir)\$(SrcFile44).o : $(SrcDir)\$(SrcFile44).c 
	@echo COMPILING...$(SrcFile44).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile44).c | fmterr.exe



$(ObjDir)\$(SrcFile45).o : $(SrcDir)\$(SrcFile45).c 
	@echo COMPILING...$(SrcFile45).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile45).c | fmterr.exe



$(ObjDir)\$(SrcFile46).o : $(SrcDir)\$(SrcFile46).c 
	@echo COMPILING...$(SrcFile46).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile46).c | fmterr.exe



$(ObjDir)\$(SrcFile47).o : $(SrcDir)\$(SrcFile47).c 
	@echo COMPILING...$(SrcFile47).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile47).c | fmterr.exe



$(ObjDir)\$(SrcFile48).o : $(SrcDir)\$(SrcFile48).c 
	@echo COMPILING...$(SrcFile48).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile48).c | fmterr.exe



$(ObjDir)\$(SrcFile49).o : $(SrcDir)\$(SrcFile49).c 
	@echo COMPILING...$(SrcFile49).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile49).c | fmterr.exe



$(ObjDir)\$(SrcFile50).o : $(SrcDir)\$(SrcFile50).c 
	@echo COMPILING...$(SrcFile50).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile50).c | fmterr.exe



$(ObjDir)\$(SrcFile51).o : $(SrcDir)\$(SrcFile51).c 
	@echo COMPILING...$(SrcFile51).c
	@$(sdsTools)\cc68000 $(Includes) $(COptions) $(SrcDir)\$(SrcFile51).c | fmterr.exe



